package com.flyco.modules.stm.mapper;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.SqlParser;
import com.flyco.modules.fenxiao.entity.WxCpUser;
import org.apache.ibatis.annotations.Param;
import com.flyco.modules.stm.entity.StmSales;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @Description: 导购
 * @Author: flyco
 * @Date:   2020-09-10
 * @Version: V1.0
 */
@DS("store")
@Repository
public interface StmSalesMapper extends BaseMapper<StmSales> {

    @SqlParser(filter=true)
    public List<StmSales> getSalesByUserId(@Param("userId") String userId);

    @SqlParser(filter=true)
    public Boolean updateDelFlagById(@Param("ids") String ids);

    @SqlParser(filter=true)
    Integer saveSalesByWxCpUser(WxCpUser wxCpUser);

}
